package Dawid_Wekwejt;

import java.lang.Math;

public class Prostokat
{
	//Konstruktory publiczne
	public Prostokat()
	{
		this.x = 0.0;
		this.y = 0.0;
	}
	public Prostokat(double a, double b)
	{
		this.x = a;
		this.y = b;
	}
	
	//Interfajes Prywatny
	private double Pole(double a, double b)
	{
		return a*b;
	}
	private double Dlugosc_przekatnej(double a, double b)
	{
		return Math.sqrt(a*a+b*b);
	}
	
	//Interfejs Publiczny
	public void Ustal_wartosc_x(double a)
	{
		this.x = a;
	}
	public void Ustal_wartosc_y(double a)
	{
		this.y = a;
	}
	public void Ustal_wartosc(double a, double b)
	{
		this.x = a;
		this.y = b;
	}
	
	//Pola
	private double x;
	private double y;
}